<div class="right">
	<div id="bread-nav" class="fn-clear">
		<ul>
			<li><a href="admin/home">后台首页</a></li>
			<li><a><?=$className?>管理</a></li>
		</ul>
	</div>
	<div id="content" class="text-darkgrey">
		<h2><?=$className?>管理</h2>
		<div class="add">
			<a href="<?="admin/news/add$class/"?>">添加<?=$className?></a>
		</div>
		<?php if ($num > 0) : ?>
		<table>
			<tr>
			<td class="id text-red center">编号</td>
			<td class="title text-red center">标题</td>
			<td class="time text-red center">时间</td>
			<td class="author text-red center">管理</td>
			<td class="author text-red center">推送</td>
			<td class="edit text-red center">编辑</td>
			<td class="delete text-red center">删除</td>
			</tr>
			<?php foreach ( $newslist as $row ) : ?>
				<tr>
				<td class="id center"><?=$row ['id']?></td>
				<td class="title"><?=$row ['title']?></td>
				<td class="time center"><?=date ( 'Y-m-d H:i:s', strtotime ( $row ['updateTime'] ) )?></td>
				<td class="author center"><?=$row ['updatePerson']?></td>
				<td class="author center"><?php if($row ['show']=='T') echo "首推";?></td>
				<td class="edit center"><a href="<?="admin/news/edit$class/" . $row ['id']?>">编辑</a></td>
				<td class="delete center"><input type="button" onclick="deal(<?=$row ['id']?>,'<?=$class?>')" value="删除" class="padding" /></td>
				</tr>
			<?php endforeach;?>
		</table>
		<div id="page-nav" class="fn-clear"><?php echo $this->pagination->create_links ();?></div>
		<?php else : ?>
		<p>没有新闻！</p>
		<?php endif;?>
	</div>
	<script type="text/javascript">
	function deal(str,url) {
		if (confirm("确认删除记录"+str+"？")){
			window.location = getRootPath()+'/admin/news/dele'+url+'/'+str;
		}
	}
	</script>
</div>